package program1;
//
import java.io.*;
import java.time.LocalDateTime;

public class test {//测试功能用的代码
	public static void main(String[] args) throws IOException
	{
		
		BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("./hotel message/message.txt")));//创建输出流
		int data;//用于读取数据
		StringBuilder buffer = new StringBuilder();//实现字符的拼接
		String regex = "\\s";//定义正则表达式
		filein.input();
		while((data = br.read())!=-1) 
		{
			buffer.append((char)data);	
			String receivedString = buffer.toString();
			if (data=='\n')
			{
				String []word = receivedString.split(regex);//切割
				for(int i=0;i<word.length;i++ )
				{
					System.out.print("   "+word[i]+"<"+i+">");
					
				}
				System.out.println();
			
				buffer = new StringBuilder();//重置buffer
			}							
		}
		MyHashMay.hset("user1","name","张三");
		System.out.println(MyHashMay.hget("user1","name"));
		MyHashMay.hdel("user1","name");
		System.out.println(MyHashMay.hget("user1","name"));
	
	}
}












